package com.old.controller;
import com.old.util.BigModelNewUtil;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

@RestController
@RequestMapping("/voice")
public class VoiceController {

    @PostMapping("/ask")
    public SseEmitter handleVoiceQuestion(@RequestParam("file") MultipartFile file) {
        return BigModelNewUtil.processVoiceInput(file);
    }
}
